package me.magicall.db;

import me.magicall.db.util.DbUtil;

public interface SqlValueAppender {

	void appendValue(final StringBuilder sb, final ConditionOperator conditionOperator, final String fieldName, int index, Object refedValue);

	public static SqlValueAppender COMMON_APPENDER = new SqlValueAppender() {

		@Override
		public void appendValue(final StringBuilder sb, final ConditionOperator conditionOperator, final String fieldName, final int index,
				final Object refedValue) {
			DbUtil.formatSqlValue(sb, refedValue);
		}
	};
}
